package dyyx;

/**
 * 毫秒数定义为 int ，整数溢出
 * @author dugang
 *
 */
public class IntMillisTrap {
	
	private static final int ONE_SECOND = 1000;
	private static final int ONE_MINUTE = 60*ONE_SECOND;
	private static final int ONE_HOUR = 60*ONE_MINUTE;
	private static final int ONE_DAY = 24*ONE_HOUR;
	private static final int ONE_YEAR = 365*ONE_DAY;

	private static final long ONE_YEAR_LONG = 365L*ONE_DAY;



	public static void main(String[] args) throws Exception {

		for(int i=1;i<7;i++){
			System.out.println(ONE_YEAR * i);
		}
		
		System.out.println(System.currentTimeMillis());
		System.out.println(Integer.MAX_VALUE);

		for(int i=1;i<7;i++){
			System.out.println(ONE_YEAR_LONG * i);
		}
	
	}
}
